﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebManager/manager.Master" AutoEventWireup="true"
    CodeBehind="Add.aspx.cs" Inherits="BaoJian.WebManager.Function.ClassifyProducts.Add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
       <div align="right">
            <asp:Button ID="Save" runat="server" Text="保存" OnClick="Save_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Ret" runat="server" Text="取消" Width="35px" OnClick="Cancel_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;
        </div>
        <div>
            请选择产品
            <asp:DropDownList ID="ProductList" runat="server" DataTextField="Name" DataValueField="PID"
                AutoPostBack="True" OnSelectedIndexChanged="ProductList_SelectedIndexChanged">
            </asp:DropDownList>
          
            <div>
            </div>
        </div>
        <br />
        <div>
            主分类
            <asp:DropDownList ID="MainCatalog" runat="server" 
                DataTextField="MainCatalogName" DataValueField="MainCatalogID" 
                AutoPostBack="True" onselectedindexchanged="MainCatalog_SelectedIndexChanged">
            </asp:DropDownList>
            子分类<asp:DropDownList ID="SubCatalog" runat="server"   DataTextField="SubCatalogName" DataValueField="SubCatalogID" >
            <asp:ListItem  Value="">请选择</asp:ListItem>
            </asp:DropDownList>
        </div>
        <div>
            该产品已有分类的信息<br />
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" BorderStyle="None"
                BorderWidth="1px" BorderColor="#CCCCCC" BackColor="White" CellPadding="3" Width="100%"
                PageSize="15" AllowPaging="true">
                <HeaderStyle Font-Size="9pt" Font-Names="宋体" Font-Bold="True" ForeColor="Black" BackColor="SkyBlue">
                </HeaderStyle>
                <SelectedRowStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedRowStyle>
                <RowStyle ForeColor="Black" BackColor="White"></RowStyle>
                <Columns>
                    <asp:BoundField DataField="SID" HeaderText="序号" ReadOnly="True" SortExpression="SID" />
                    <asp:BoundField DataField="ProductName" HeaderText="产品名称" ReadOnly="True" SortExpression="ProductName" />
                    <asp:BoundField DataField="MainCatalogName" HeaderText="主分类" ReadOnly="True" SortExpression="MainCatalogName" />
                    <asp:BoundField DataField="SubCatalogName" HeaderText="次级分类" ReadOnly="True" SortExpression="SubCatalogName" />
                </Columns>
                <AlternatingRowStyle BackColor="#E0E0E0" BorderColor="DarkGray" BorderStyle="Dashed"
                    BorderWidth="1px" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
